cache file loads and rendering for performance improvements