store statistics as compressed serialized object