Optimally has 2 different meanings across 1 category:
Adverb
in an optimal and most desirable way
In an optimal manner.