Reduce needless memory allocation