Move segment processing logic on Redis side.
Debugged and fixed processing flow till unpacking (on Java side).