convert tc_edge to use memory cookies