some further performance improvement for linear kernel psi statistics