Use stream instead of list to convert files to vectors