TODO: test param-optimizer on larger pipeline