Create index on hash