MAINT: do not multiply and accumulate when the fill value is zero