Make reading binary data more compact

To avoid redundancies