Optimize for large file tail reading

Change-Id: Id517c79ba7ba6fc8d7553efe277e60f50c0d625b
Merge "Optimize for large file tail reading"