Prevent blocking forEach loops