Rewrite of Realm (Perf' & Security)