Implement caching for on-demand compiling with plessc