Switch over to HashMap for RAM cache as well