I moved _env_name variable at the module level so it is static for all practical purposes.