Scheduled code generation as a Job to avoid blocking the UI thread