Use safe encode in topo coordinator