Add various integrity checks before we consider files processed