Remove unnecessary array

To save code size and improve performance.