have you considered using nvs for storage? We could have a Kconfig flag to optionally support nvs, or if you like it, we could switch entirely to it. I am willing to do a PR.