spring: optimize color storage