Prevents unnecessary allocations