[search] Refactor and remove encrypt repo checking