added postOptimize hooks, analogous to postCommit hooks but only called after an optimize command. Useful for only distributing optimized indicies