Add a setting for the used flush mode when compressing data

Fixes SMACK-593