further improvements on precomputation of input streams