get into the nitty gritty for the _key_to_sha1 function.
It doesn't seem to help to op-out of the actual unhexlify call, so at least that doesn't seem to be the performance overhead. We get down to around 19.9us for _key_to_sha1 across 120 keys, which is 0.166us per key.