Change cache to local storage.