Use an LRU cache for query tables, and add expiration support

Defaults to 8192 items each valid for no more than 10 minutes
Both settings can be changed via environment config.
See #83