Instead of iterating all headers to find two known keys, the method should use direct lookup
Instead of iterating all headers to find two known keys, the method should use direct lookup