CreateDictionary: add threshold for flushing RAM map based on number of features in memory