Sorry, "SET CONTEXT_INFO {binary value}" works in SQL 2000 but the CONTEXT_INFO() function does not exist. You have to use
SELECT context_info
FROM master.dbo.sysprocesses
WHERE spid = @@SPID
Since it still requires a SELECT, I don't know whether it would result in a major performance improvement or not.