use local storage to improve performance after the first time the app is loaded