Why do you need to send the whole transation to the miner over UDP? You could just send the transaction hash. This is unique and smaller.