Caching of RenderStates