added caching for aql output