cache: deinline state handling
The intent is to reduce branchfest when finishing the lookup.
Tested by: pho