Optimize color cycle loop