Persist to local storage.