Factor cached lookup into the app class.