Indicate types to ensure fast execution
Only store cojams_num and use dict-in-dict instead of tuple indexed dict