The code can be sped up by using SIMD instructions. This is something we should explicitly implement.