measure model cache (NO MERGE, needs bug)

It's disabled by default. 
The tests are minimal, but it's also a dev tool. 
The crucial piece that takes the measurements is a wrapped in a try:except that catches and logs everything and then moves on.