Performance: Do not scan entirely the jobs folder

Related to #11804, does not fix it entirely