Encrypted file now written to device