caching colors in scales to improve performance