I assume the optimal pH depends on whether you are buffering against acid/base or both. For example, if you added a lot of a weak base, e.g. sodium acetate, to act as a buffer and then added something like sodium hydroxide to the solution then the buffer would have virtually no effect because...