Revamp Varnish trigger loading task with improvements from load_function