As it was pointed out before, recompression of epubs is best done with tools which assure correct treatment of the mimetype file.
If you want to profit from 7zips higher zip compression use
http://en.wikipedia.org/wiki/AdvanceCOMP on the finished epub. As it only works with compressed dataparts of the zip only it won't mess the uncompressed mimetype file.