Avoid reallocation and copying