Do we know this?
I suspect they usually compress videos at most a couple times (for each resolution) and then keep the results cached somewhere. At least for popular videos that combined take up 99% of bandwidth. For 0 views videos I’d imagine they only store the highest resolution and compress it further down on demand.
I’d argue DRMing all those popular videos would take up so much computing power it cannot be offset by ads.