changing large array defined on stack to pointer

Change-Id: Ied473b2c1514481e455cc0d06091d62b23911e0f
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>