misc optimisations to gpg and attachments