Optimize scanning named output