Use map instead of inject for invalidated files