Improve the --statistics performance by skipping sanity checks