Efficiently manage the different characteristics offered by RAM, RTC memory, and flash memory on ESP8266