Declare these vars global. It might help with post-upgrade auto-apply on ALIX when memory is low.