memory improvements csv read