ERT-781 Faster implementation of CSV_EXPORT