Allow to compress data before submiting, refs #15