SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '4d34e034dd83cba7a97464829d3a87b13d23bdcfac62e62717f88ddd83a54c6b' 
  AND token = 'X4R9sv5dEx+ETnTXKWBU7+YnZ4E9/Oxn4QvRjoY9oZQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00038

JSON explain

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