Caches needy paths in localStorage to speed up load times.