Ensure `cfg` is called no more than one time