Losslessly optimize bg-top