I’ve been using mgos_sys_config_save() for a while on my device to save device config on buttons press, and I’ve recently also started playing with flash encryption (esp32).
I’ve noticed a massive drop in mgos_sys_config_save() performance with flash encryption enabled, it can take up to 2 seconds to save the config during which time the device is unresponsive.
Is this normal? Am I doing something wrong? Is there a better way to handle this??