FR: Made csv conversion much faster by using a map