Only hash once

If we limit the table size to less than 2^21, we can cut the result of a
single hash up into the three pieces we need.