How to persist LMIC OTAA parameters with an ESP32?

Load the settings in the Lora Setup

    ...
    LMIC_reset();

    if(RTC_LORAWAN_seqnoUp != 0)
    {
        LoraWANLoadOTTAFromRTC();
    }

    // Start job
    LoraWANDo_send(&sendjob); 

and after EV_TXCOMPLETE i send my ESP to deep sleep.