It should be possible to delay initialization of this until it's actually used.
Btw, a small bug: The text shown by "help doc" doesn't end with a newline, so the next prompt gets wrong:
help doc
Show documentation for pike modules and classes.>
It'd also be good to get a "No doc found" or something when no doc is found, instead of just a couple of empty lines.