Building optimal MP cache while building