add index on metadata for datafile_id and key