Convert lists into hash table eagerly rather than lazily.

The code is cleaner this way.