[Refactoring] Speed up find derived symbol operation.