The source of the flakyness is internal uninitialized buffers due to a dangling variable in the model.