Optimise transaction creation