[PATCH v2 2/2] registry: optimize `find_subkey` for sorted data