Improve perf by declaring definitions as arrays