Maintain the old LTO API, by using the global context.