Fixed massive ARP bug, optimized cache writing