Part of #118145. Use the brush factor/distance functions that deal with many elements at the same time.