Use a dictlike structure for id -> token mapping