See the bottom part of my answer here for how I’ve typically done this: What is the best way to initialize dependencies? - #3 by timriley
tl;dr — create a base class in your app that all contracts, etc. inherit from, and put the global configuration in that file.
That way its only loaded when you need it, courtesy of your app’s contracts using it as a parent class.