Fix the file optimizer (but is memory greedy, we get into that later)