cli: crypto: abstract gpg context creation for clarity