Replaces array-based lookups in `getEntityConfig` with a map, reducing time complexity from O(n) to O(1).