Issue #1885324: Use GROUP BY when building existing file lists to ensure files are listed if other files have been referenced more than 30 times.