Improves write performance and adds `binary_encoded_len` to compounds.
This also adds another check in CI