Use read_file_mapping for reading automation scripts
Open files with FILE_SHARE_READ on Windows
Use read_file_mapping for reading attachments
Use read_file_mapping for charset detection