YAO: yet another optimization