SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '240ce8c6bec595425f806166d4ecb77508778f1ed181605e243567f1783aa4b2' 
  AND token = 'm8AoUiWgnjwuXNWoeV1g+7D1geIhMnVzqvOLe7UwwDQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00021

JSON explain

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