Caching shaders to reduce massive copying.