Optimize get_instance() calls/assignments
12 files changed