1. A method of a controller comprising: applying a write-back technique between a host server and a data store; accessing a dirty data in a cache memory during a power outage; applying an algorithm for efficiently offloading the dirty data to a non-volatile storage device during the power outage; and applying the algorithm to efficiently transfer the dirty data from the non-volatile storage device to the data store when power is restored.