Remove all unnecessary allocations (as flagged by lint)