Removed compression to see whether or not this resolves the memory leak.