crypto: sha512 - reduce stack usage to safe number