This options commad will repack repository
prune --compression max --repack-small --repack-uncompressed --pack-size XXX
This will only repack not yet compressed data. It will do nothing for an already compressed repository, independent of the compression level used so far.