Accelerated variational approach for searching cycles