Improve speed for deflated files, avoid use of bosst lib, code review