Improve writeFlashBuffer, add jump table to priv