Better built in primitives.

inbuilt functions now use the primitives.

Actually uses the stash cache now. Defaults to an ephemeral driver, but
another can be handed in.