Performance optimization in RenderStage