Zend certified PHP/Magento developer

magento 2.4 config.xml default value for obscure field

I’ve successfully created a custom section on stores > configuration via system.xml. This section has some api credentials to connect to an external service: one group is for sandbox credentials, the second group is for live environment. I’ve also created a config.xml file to store sandbox credentials (sandbox doesn’t contain any sensitive data so I can safely have default values) while the live environment group has no value set in config.xml and all fields are of type obscure.

For testing purposes, I temporarily changed the sandbox fields’ type to obscure to see if I can get the default value set in the config.xml but this fails. If I remove the default value and/or replace it by saving a value via backend, then everything works and I see my value correctly decrypted.

So my question is: is there a way to have a default value in config.xml for a field that is set as obscure in system.xml?