CHugeFile class, more intelligent memory management