Optim to avoid useless gsliced_array

as our gsliced_array are very slow.