Write formatted transactions to temp Ledger .dat file.
Modify input directly, rather than creating a new instance to improve performance.

Significant speed up.

Before
	real	0m14.684s
	user	0m14.708s
	sys	0m0.191s

After
	real	0m0.567s
	user	0m0.597s
	sys	0m0.048s