Added option to use RAM for speed