Misc updates and added an attempt at using APC to avoid array serialization.