Improve performance of convolute.