Pathological behaviour when building large hash index