removes the built documents from the KBCorpus (less memory usage) and replaced them by the information required to build the documents