Optimize flow detail