Cache lectures in localstorage