If you need simple initialization with fixed values, static local variables are good. If you need more dynamic and complex initialization, you will have to create a class and instantiate it in setup(). Then maybe put some functions in a while loop inside setup and pass the instance's pointer to that function for use. What are you trying to do exactly?