Reduce transaction size stored in datastore to fix size limit issue.