Added RAMDirectory for memory based index