Persist transaction metadata instead of whole transaction object