More efficient GetNonzeros::evaluateGen