bug #664 - csv file caching, support multi-threading

https://gist.github.com/rgatkowski/d713b441f52c775b6f3e