On-the-fly reduction of open loops