Reducing code to half its size

It's very possible. It has been done quite a few times, look up and you will see this reply that shows one