Youtube already does this, to some extent, by slowly reduce the quality of your videos, if they're not accessed frequently enough.
Many videos I uploaded in 4k are now only available in 480p, after about a decade.