Flash memory

So, what about using flash memory to store these values?

Flash memory is read-only at run time.

EEPROM is writable. Unless you have a Due, which doesn't have EEPROM.