Its difficult to point you in the right direction because I don't have a clear understanding of what you are trying to do.

A few more specifics on what these routines are doing and what type/length of data you are trying to store could help. Also is this the internal EEPROM you are reffering to?