Changed deflate wrapping
Replaced `deflate` implementation to more fast