Incorporate optimizations for mapbox-gl

Speed up cascadeClasses