Improve performance by avoiding call to read.