While I cannot show any performance improvement, I'll argue that the
complexity of retrieving a translation unit is now two times faster.
The python "in" keyword has to walk to the datastructure once, and we
walk a second time to retrieve it. We only walk it once now.