I agree with Frank, the best solution is to use Teensy 3.2 with a coin cell on VBAT. Then you can store this data in the battery supported RTC memory.

Another good approach would be to add a FRAM...