Dynamic allocations removed after considering pros and cons