Convert to compressed preallocated scope path structure