"compute" hash index once