Use circular buffer for header table instead of simple array