If you disable ACL optimizations then re-enable them, tables related to Read ACLs don't get updated correctly, which causes documents to not be found in searches.
This is due to the fact that we disable some triggers when ACL optimizations are disabled, but do not re-enable the triggers when the optimizations are enabled back.