O.P. RE: Caching which windows have a command enabled
I did mean 1053, because I was excluding 1054
If it's sparse arrays then it is wasting memory I think. Well if I'm understanding Wiki correctly then it is wasting memory. http://en.wikipedia.org/wiki/Sparse_array