SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '2540f0bee9862b88cd3298171925c86100a913bb817ca1a69f003cad62058751' 
  AND token = 'r2SVu6eWxL/9oYG/rKEEn4cMUTN2vzu04OJkuX1cq0g=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00017

JSON explain

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