Optimization in the shaders