more color curves optimizations