Merge: Performance improvement in read_all_bytes