Pre-allocating array for final dependencies to optimize for the most common case