First round of render state optimizations