Performance improvement - Remove massive commits from index, and simplify the logic for building a file list