1. A computer implemented method of optimizing code comprising: loading a code stream into computer memory, said code stream comprising of a set of sequences of code; storing a first expression value for a first expression in a first memory location, said first expression comprising of a first sequence of code; tracking said first expression value by annotating said first memory location with a tag of said first expression; performing a string compare of a second sequence of code with said first sequence of source; and replacing a second expression with said first expression value, said second expression comprising a second sequence of code, if said second sequence of code matches said first sequence of code, and omitting execution of said second sequence of code in code stream.