Strategies to maximize the performance of a STED