Optimistic locking must be switched on at the entity level. This is because the evidence solution, which will be interacting with the entity, relies on database controlled versioning.