maximum speed for hash function