GEOT-4763: improve scalability on rendering/rasterSymbolizer

Backporting to 11.x: GEOT-4763: improve scalability on rendering/rasterSymbolizer