Add generic cache for IDispatch objects