What happens if a file is on more than one cluster?  Don't you want to also iterate through clusters (with the cluster filter), and set the attribute on each one.  Otherwise won't you have an access to an ambiguous element?