Writes plaintext to the derived output location, optionally deleting the encrypted source, and returns the written file.