hashindex: Fix issue with indicies larger than 2GB