Transform stream for keeping N chunks at a time