Micro-optimization: clearing array