Optimal Superconducting Critical Temperature in the Two-Dimensional Attractive Hubbard Model