First batch in performance optimizations
Added loadrules2