Rewrite Config.getKeyType to use a much more space-efficient mapping