Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Use the new functions for buffering while reading when looping through files that use the FILESORT_VARINT method of storing data.