Speed-up base invocations of `opam config var <VAR>`

Now `opam config var prefix` is immediate, and ocp-index can use it nicely.