SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'f6d6642a1d9477fce7eb2507b95215c3974a14e7399a96fede8518e66b3255c5' 
  AND token = 'XA/eJShcjQX9Hjo1g1bk/g6+x4ljamr/6bJGzGvj9QY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00055

JSON explain

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