added best speed parameter for zlib
correction of check for shrinking