Question about Cloud Session Persistent Storage

Just looking for some clarification on how these devices go about re-connecting to the particle cloud after a reset or power-off event.

From my testing, it seems that the device will try to load cloud session data from persistent storage, if available. On the first power up, the following message is seen:

[system] WARN: Failed to load session data from persistent storage

However after a connection has been established, I reset the device using System.reset()and we can see the following relevant messages:

[system] INFO: Loaded cloud server address and port from session data
[comm.dtls] INFO: restored session from persisted session data. next_msg_id=12

If the device is powered off and we start this process again, we see this familiar message:

[system] WARN: Failed to load session data from persistent storage

The reason I am interested in the cloud session data is the potential data savings from not having to re-establish a cloud session on every connection.

So the question is: Does this persistent storage cloud session data remain intact during resets, but not during power cycles? And is this the same for the B-Series devices and M-Series devices?

Thanks!

The session is stored in volatile memory, so yes; a power cycle will wipe it. This is true for all Particle devices

Sleep modes will preserve the session and also save on power usage.

Thanks for the info! Are there any plans to try and move this storage to non-volatile memory?