Add file caching for textures