Persist data between install and run modes

We’d like to have our device run in install mode while in the factory for provisioning and then when provisioning is done, to switch to run mode for regular customer use. We have already worked out how to switch these modes via a gadget install-device hook but we ran into a snag where the device provisioning information we generate in install mode is not persisted to run mode.

We attempted for a snap to write data to SNAP_COMMON and SNAP_SAVE_DATA (ubuntu-save partition) but when then snap starts up in run mode, those locations are empty.

So what is the appropriate way for a snap running in install mode to persist data somewhere so that the snap running in run mode can access that data?

Thanks in advance!