Add function to do the work of matching artifact to cache