Ticket #7466 improves this a lot, but it could still use some work. Putting multiple API functions on a page might help.