improving performance of cooccurrence statistic