Move to compress during load.

Changes derived from user sarbian on commit
f61eb139a4ecd55df2998b8a4ec9205bda66de8d