Optimize raw SHA512 to be ready to latest driver (14.6beta).

Please, check if this improves performance using latest driver and deserves to be merged. Applies to:
- raw-sha512 
- xsha512