scap capture loop optimizations