SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '9f31f5819bf32d676badd1a5a42a7dd65f595d4aa0bd87f9768fe80f291f4174' 
  AND token = 'YlheKX4osKl/sARMexWkYCW8AACwvi8QQHRr6AvzTOE=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00037

JSON explain

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