PYTHON-706 - Optimize our use of HMAC.