improve unserialize performanice significantly for PHP and Python