Memmory allocation optimized