Core: prevent unnecessary $() rewrapping, re-use local var instead