I have a complex object that I create in a PHP script. I am looking for a way to store this object such that subsequent requests do not have to recreate it, or spend time un
Look into the Igbinary PHP extension. It is a drop in replacement for serialize and unserialize and it may suit your needs.
It stores objects in a binary format instead of a string which decreases memory usage and also decreases the time to serialize and unserialize objects.
Although this does go through the process of unserializing an object, the binary format may increase performance enough to make this process reasonable for use in your application.