Lightweight transactions have a cost