Add optimization flags to the hmac methods.
Since an hmac with the same value and key will return the same hash, constant_offline and cache_return can be used.