More efficient dyncolormap lookup.