[fix] Remove pointless code.
[major] Cache module lookups to improve performance and reducing calls.