package: Add possibility to disable deflating in a thread

Change-Id: I4d98b6f8b3315b731206700eb65f08463299dda3
Disable deflating in a thread

Change-Id: I1803cd61e283bcc20d4d59870121e785bc778f4a