added option for setting cache in datasets module