cache document text