[Optimization] Avoids useless multiple cache hits during transactions.