Quick fix for #986 (Deserialization of datasets allocates a lot of memory causing OutOfMemoryExceptions)