save features in disk instead of memory