Improve efficiency of jackknife