Finishing implementation of a simple cache. Generation time was reduced by a factor of 20% to 90% (according to attached benchmarks).