Register prefixes after stripping last few components matching a predicate.
Warning: this may misbehave when DataStore.InsertOptions.expireTime is being used.
Register prefixes after stripping last few components matching a predicate.