Adds a special cache for transactions.