Change files_array iteration to save up some variables.