Optimize FTS tables on deploy