new EEPROM functions optimised to reduce RAM usage