Speed up type lookups

refs #7561
Improve config compiler's memory usage