Cached the document object in multiple plugins.
Merge pull request #3037 from pjackson28/cachedocument

Cached the document object in multiple plugins.