Revert "Revert "Avoid setting size/position on Transaction if not needed""

Original issue will be fixed with CL in same topic

This reverts commit d70feb234f47d6088c751f8c5529a29ac3aa029b.

Bug: 71694437
Bug: 71692657
Bug: 71510789
3 files changed