Move epoch and cid generation into the rx core