integration performance improvements

now only unique integrals are calculated