Optimize color writing