performance improvements for static gradient maps