Merge pull request #755 from mulesoft/MULE-7638

MULE-7638 - fixing big memory usage during transaction recovery
(cherry picked from commit b3963d9b1a2c833ba7a013218aafcb9490bdec59)