Reduced malloc() calls during cache initialization