MAINT: stats: micro-optimization in loggamma stats method--reuse the value of var