```scala
trxTableCaches.get(topLevelTable) getOrElse {
  val cache = new TransactionTableCache()
  trxTableCaches += topLevelTable -> cache
  cache
}
```