I'm not 100% sure if this is faster, but it seems like it might be: encode the `h` message's bytes as a hex string using `hexlify`, and then read it in using `int(num, 16)` -- this saves on building the intermediate integers and the reduce.