Writing records to disk instead of stackmob