Fix multiple fread() slowdown by swapping bytes