memoize global config functions that hit the db every request