cache lid-count and only traverse data file if needed