Use cache for maskTexture