#410 Artifact cleanup extension

If there are a 1000 pipelines with 3 stages each (say), and a plugin wants to handle everything, won't this loop become slower and slower, because of the contains on a list, rather than a map? Might be worth checking the performance here.