Gpg optimization

Implemented https://github.com/globaleaks/GlobaLeaks/issues/511