CMT-3178 Rendering performance improvement for extended colormap rasters

This is the patch for the current performance improvement.