If you want to do this faster
```scala
tables foreach (table =>  {
  trace("loadTablesData: {}", table)
  trx.getTransactionRecords(table, from, to, ranges)) foreach (record => {
    val group = grouped.getOrElseUpdate(record.timestamp, MutationGroup(record.token, record.timestamp))
    group.records = record :: group.records
  })
})
```