Writing a sample php script right now that uses GridFS from MongoDB to accomplish the same task, and all you need to do in order to scale is fire up additional MongoDBs. Let me know if there's interest, at the very least I can toss it up on GitHub somewhere. -- Mitch