Isn't this what compression algorithms already do?