Performance fix for iterating over small tables with large numeric keys.