pub fn compress_with_best_strategy(prev_value: U256, new_value: U256) -> Vec<u8> {
    let compressors = default_passes(prev_value, new_value);

    compressors
        .iter()
        .filter_map(|e| e.compress_extended())
        .min_by_key(|bytes| bytes.len())
        .unwrap_or_else(|| {
            CompressionByteNone::new(new_value)
                .compress_extended()
                .unwrap()
        })
}
Compresses storage values using the most efficient compression strategy.

For a given previous value and new value, tries each compression strategy selecting the most
efficient one. Using that strategy, generates the extended compression (metadata byte and compressed value).
If none are found then uses the full 32 byte new value with the metadata byte being `0x00`.
core/lib/types/src/storage/writes/compression.rs