Avoid multiple assignments to `$data` - do it in one shot instead.