[delegate] Improve trampoline caching