This exact problem has been discussed many times throughout this thread at different points in time.....
Indeed, as long as I can remember actually. I'm not sure if Bitmain will actually go the p2pool way tbh, but if they do, their code is going to be interesting viewing - especially as they're running S2's which are notoriously crap with p2pool.....