Raise max Hash to 1TB
And use size_t where appropriate, as suggested on FishCooking.

No functional change.