While this will reduce the memory consumption of each chunk, it still won't scale as eventually
hashCodesOfSavedImages
will consume more memory than allocated to the JVM