Hi,
Here is a link, in which states that the CreateEnvironmentBlock API will fail if it is used to retrieve environment variables for a user whose profile is not currently loaded. I think the failure calling will consume a longer time than success calling. http://support.microsoft.com/kb/305136
Hope this helps!