Real-time file compressor