Keep attachments on your own private storage (S3-compatible or your own server) and view them in your notes. Credentials stay on the device, never in your notes.