To optimize that would involve more code than you might think--once the exist test was done, the code would need to check on the status of $very{nested}, $very{nested}{hash}, and $$very{nested}{hash} as any part of that expression could be tied or otherwise magic. That makes this rather more interesting to optimize.