Initialize color mode before caching