### Description

Currently, the [`tryAuthenticateToken`](https://github.com/elastic/elasticsearch/blob/55088d154d1764a6d4fa8e9078bde9da1e9ff9a5/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java#L458) method calls `decodeAndValidateToken` which ends up sending two `GetRequest` for the same token ID. First in [`decodeToken`](https://github.com/elastic/elasticsearch/blob/55088d154d1764a6d4fa8e9078bde9da1e9ff9a5/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java#L602) and second in [`checkIfTokenIsValid`](https://github.com/elastic/elasticsearch/blob/55088d154d1764a6d4fa8e9078bde9da1e9ff9a5/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java#L1977). The second call is unnecessary as we already fetched the access token in the first call, it's just simply dropped. We should refactor these two methods to avoid sending second get request just to validate the access token.
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java
CipherOutputStream encryptedOutput = new CipherOutputStream(
                        out,
                        getEncryptionCipher(initializationVector, keyAndCache, version)
                    );
                    StreamOutput encryptedStreamOutput = new OutputStreamStreamOutput(encryptedOutput)
                ) {
                    encryptedStreamOutput.setTransportVersion(version);
                    encryptedStreamOutput.writeString(Base64.getUrlEncoder().withoutPadding().encodeToString(accessTokenBytes));
                    
                    encryptedStreamOutput.close();
                    return new String(os.toByteArray(), StandardCharsets.UTF_8);
                }
            }
        }
    }
    public static String prependVersionAndEncodeRefreshToken(TransportVersion version, byte[] refreshTokenBytes) throws IOException {
        if (version.onOrAfter(VERSION_GET_TOKEN_DOC_FOR_REFRESH)) {
            try (BytesStreamOutput out = new BytesStreamOutput(VERSION_BYTES + RAW_TOKEN_BYTES_TOTAL_LENGTH)) {
                out.setTransportVersion(version);
                TransportVersion.writeVersion(version, out);
                out.writeByteArray(refreshTokenBytes);
                return Base64.getEncoder().encodeToString(out.bytes().toBytesRef().bytes);
            }
        } else {
            try (BytesStreamOutput out = new BytesStreamOutput(VERSION_BYTES + TOKEN_LENGTH)) {
                out.setTransportVersion(version);
                TransportVersion.writeVersion(version, out);
                out.writeString(Base64.getUrlEncoder().withoutPadding().encodeToString(refreshTokenBytes));
                return Base64.getEncoder().encodeToString(out.bytes().toBytesRef().bytes);
            }