Fix bug in sample code.
Add plug-in to cache generated code.