Optimized reading integers and numbers