Every time you take a trip to the data it taxes the file.
http://en.wikipedia.org/wiki/Thread_(computer_science)
http://www.informit.com/articles/article.aspx?p=25075
My approach to building RDBMS is to limit trips to the data. Use data types that don't require much memory when possible, etc.
I could be wrong, but your approach does not seem very conventional.