Allow most APIs to be called from background threads