Initialize storageId variable in shared cache
Use the source Scanner for shared storage when the path is specified