Kind of working caching.  Added initial logging, not quite there yet.