Rudimentary caching for meshes and materials