That which optimizes one part of the system necessarily undermines the system as a whole.
Law 1: Every program can be optimised to be smaller. Law 2: There's always one more bug. Corollary: Every program can be reduced to a one-line bug.
Premature optimization is the root of all evil in programming.
Rules of Optimization: Rule 1: Don't do it. Rule 2 (for experts only): Don't do it yet.
Michael A. Jackson
Source code available @ githubpull requests are more than welcome ;-)