Minor performance improvements
Export only what we need in each module
Clean up intermediate value usage to reduce memory allocation overhead
Dead code