Optimized Apriori memory.