lzms-compress.c: Don't do redundant work in cost calculations