You could use something far more suited to this sort of application like a small micro and EEPROM. Depends on your specification.
Chances are whatever you do will work inefficient though it might be. (As soon as you use a heavyweight OS for something like data collection it's already horrendously inefficient but then I started out on eight bit micros.)
Jon