Good tip--one typo, though: if you're using GNU sed, that should be a backslash.
Using this I put together a pipeline that allows me to decrypt a text file using gpg, add something to it, and re-encrypt it again--all without writing any decrypted files to disk:
gpg --decrypt testfile2.asc | sed '$a\blah blah blah' | gpg --yes -ear
omari@foo.com --output testfile2.asc