adding methods to compress and decompress using the file system, which keeps the memory consumption always low