DocumentSingleton: Simplify adding to the cache.