Why not use a bidirectional map?