Improve /api/v1/programs efficiency