after ledger file is created process the file to replace duplicate transaction id's with a transaction id and count of duplicate rows separated by a delimiter.
Example:
46a022b8d2b5a74946a56dfb4d35c6da8df391eace2288f30b136b9229583c97
46a022b8d2b5a74946a56dfb4d35c6da8df391eace2288f30b136b9229583c97
46a022b8d2b5a74946a56dfb4d35c6da8df391eace2288f30b136b9229583c97
46a022b8d2b5a74946a56dfb4d35c6da8df391eace2288f30b136b9229583c97
would be replace with:
46a022b8d2b5a74946a56dfb4d35c6da8df391eace2288f30b136b9229583c97**:4**
Update file building process to interpret the :4 to mean repeat the data 4 times in a row.