Check return code of secrets_init() function.