changed the cache to a per document cache
8.0.0