The struct is 144 bytes + 80 bytes of spares. This adds avoidable work for both zeroing and copying.
Introduce kernel_stat for internal use.
The rest of the change which replaces stat with kernel_stat where appropriate is here (along with this patch): https://people.freebsd.org/~mjg/stat-full.diff