Rename outer_size to tail_size, add lw_stream_from_tail function