Optimizations for highlight drawing.