faster transaction level derived vars with data table