optimized sketch loading through localStorage caching