avoid unnecessary passing around of arch_env_t* in backend APIs