caching tiles for performance increase