The parameter type is part of the cache identity, nvarchar and varchar would have two cache entries with possibly different plans.