Added snappy compression for gradients.