Added basic localstorage caching