small speed improvements to aper,mmm,pixwt