[performance] Increase performance of adding files to squashed layer
[performance] Increase performance of adding files to squashed layer

In the beggining to make sure we get a list of files in the
squashed layers we always retrieve them before **every** file
we wanted to add. This doesn't make sense and thanks to the
performance work I found this issue.

goldmann/docker-squash,goldmann/docker-scripts