How would you design a local storage mechanism to persist patient notes so that the data survives app termination?