Extract SECRETS-loading into isolate script