I'd prefer these to be named maybe_compress and maybe_decompress to more clearly state intent.