fast dictionary search