Be more ressource friendly with the hashset