Add a way to cache certain parts of a document