Correctly calculate the max read size