Fix mask caching pipeline
The problem was a forced mask update that was done only in case of caching. It's not necessary at all, so it was removed. Now the exact same behaviour for the first and for cached mask steps is given and thus the pipeline works again