Optimize orphan transaction handling