Only displays read_then_written warning once

Prints out warning once with the list of files instead of printing it
again for each file.