csv parsing optimizations