So what is your recommendation on such matter? Using a hash table perhaps?