A simple local storage wrapper with an in-memory fallback