Remove the filepath and add the file MD5 to the document