ENH: short-circuit config lookup when exact key given GH5147
Merge pull request #5565 from y-p/PR_GH5147_fast_config_lookup

ENH: short-circuit config lookup when exact key given GH5147