Optimization: do not resolve tokens when pattern is not fully resolved, but remaining tokens are not requested