SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'aafa251318f4d113081234b385a3f1e66bb65f25cd611e7b683ba0404effd4c9' 
  AND token = 'S5cDfJenmGGtR6ccjW7vB9J8Iv7RugOa0Z7F7/7k57o=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00027

JSON explain

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