[mr2940] Optimize code for find chain targets