conf: use hashtable instead of O(n) search