PubKey OpenPGP exporter, str/arr conversion optimizations