single memory mapping for log file both for encoding detection and file reading