speed up gutter painting

(cherry picked from commit f2c5610b7732c2babca5e3c91f68d9757a124d87)