Optimize rendering