[core] Bug 454679: Fix OutOfMemoryError in Zips.zip

Change-Id: I8284d02235f2e5ae480feace763a811e2c6d448a
Signed-off-by: Johannes Dorn <johannes.dorn@codetrails.com>
Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com>