Optimize lookup

It's probably not a very good thing, yes. But `genLookup` being part of the public API of the Macros, I'd rather have it conservative (and I guess the compile-time overhead of this is acceptable).