Yes I just checked on my side, masks always return a copy even if the segment is contiguous. But if a memory allocation is gonna happen anyway, I think we might as well remove the if statement.