High watermark encoding (thanks to Won)