Correctry handle color cache size

Title says it all. Please review.