Optimized drawing of highlights to prevent drawing the same highlight multiple times.