stats key lookup optimization