Caching of code table ids