add hashdb_scan_max_features to allow limiting the size of the feature file