NXDRIVE-46: scan_local rewrite