Prevent double key lookup. Thanks Andrej.