One of the drawbacks to embedded devices is they never have enough memory. A very simple trick to get around this is to make use of program memory space as well as RAM memory space. Most modern microcontrollers allow writing to program memory while the program is running.