Optimize the search of empty slot in hashid_insert