Optimization, take datadir from store itself