Fixes #8210 - Adding caching for smart-proxy puppet classes using Stefan Julin's implementation of cache

That's a very good question, I did wonder about this too. Chances are that the changes being written to the file are the same we just found, so yeah, let's try skipping the write?