Improvements for long-running transactions