memory management in arduino
Random access memory types
SRAM
Static Random Access Memory
EEPROM
Electrically Erasable Programmable Read-only Memory
Flash memory
Possible optimizations
Software
use PROGMEM
what it does is
1const dataType variableName[] PROGMEM = {}; // use this form
Serverside
Do the heavy lifiting on the server. provide lightweight interface for arduino to work with.