Only let through identical files once, and save state to a file.