SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'a7d27759f4c27755d2474f12af658ab9f520954c876f30396872ffdcf8127c14' 
  AND token = '2UETJ+Odm0skadgctNj0ktxQ20dFyyVwrHQD6YocQYs=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}