Fixed bug with dlookup & friends and caching