Improved version tracking for transactions