Avoid querying db when config key is not present.