Condensing code

I have about 539 blocks of code. How can I make it smaller so that it can run faster and clean it up? Code and AIA listed down below!

Echo_proxy_bare_mytabs_test.aia (380.7 KB)

closing, duplicate post!