calcuate size of utxo commitment, also dispose it properly