remove buffered read checkpoints

Switch to original code. 
Optimized version do not work with big index files.
Need another solution.