optimized filelist generation