SystemMemoryOutofException thrown while indexing files as an attachment