$T$-depth-optimized Quantum Search with Quantum Data-access Machine