optimize read empty datasets