Data are stored in one or more cells of a non-volatile memory, and are refreshed according to a predetermined condition. The data are refreshed either in-place or out-of-place. The condition may be related to the age of the data. Alternatively, the data are refreshed periodically, or when the system that includes the memory boots or dismounts, or according to the type of the data.