Benchamrk Package correction for AMP build and some logical correction i...

...n the scan_by_key.inl file