Fixed archiving for custom apiKeys and secrets.