findACOpath heavily optimized