Change MAX_RECORDS_IN_RAM to smaller value to prevent out of memory error