ENH: Make pipeline skip rebuilding existing masks