Redesign generation cache infrastructure to use local storage
The current implementation is a nightmare in debugging. It might be worthwhile (esp. w.r.t. to non-Heidelberg people using/debugging this code) to have an infrastructure, which instead:
- stores in the local dictionary of the decorated function
- registers itself with a facility that can collect the data