The RSA keys (or path to them) would be passed as environment variables. It would be a little easier to setup than gpg (especially for automatic backup restoration).
Please consider libsodium or a similar "modern" crypto library instead. There's a lot of ugly 90s crypto in GPG and the API is terrible.
Libsodium makes it hard for non-crypto devs to shoot themselves in the foot, and is much less code to write.
Put differently to be a "successor" it needs to be a drop in replacement ;)