Optimize memory usage when retrrieving content from archive