Move data compression to static methods, added linear base storage