Small performance tweaks for sha256 and sha512.