Fscanf optimization