(declare (optimize speed))
(declare (optimize (speed 2)))
has undefined consequences according to CLHS (cf. definition of
OPTIMIZE.) SBCL seems to process them sequentially, and hence the last
one is who remains active.
What about style-warning about this case? SBCL already complains about
contradicting type declarations, for example.