Merge "Do not allocate/commit transactions in tight loops"