Optimize menu drawing.