Reflection?

Maybe a flag would do. So that you can have your highly optimized compact version of something and opt in for extensive reflection when you need it.

Also I think reflection is especially usefull when u load code at runtime. In a Microservice architecture for example.

When what is present at runtime could also be determined at compile time there is also always the option to generate some kind of glue at compile time, no?