optimized SimpleDictionary to use a hash for fast lookup