little speedup
fix problem where supervised train with effective segment length is brutally slow