AVALANCHE: Move some static arrays to function bodies