cache views in local storage