Esp32 Preferences Wear Leveling, evidently it is a way to use memory like it was eeprom.