Adapt vgest_write_batch for last improvement of VGEST for computation time (vgest@aec28418).
vgest_write_batch