Brush optimization