Search handler rework and storing of cached search statistics